#ifndef DBHELPER_H
#define DBHELPER_H

#include <structure/rodove.h>
#include <db/dbworker.h>
#include <sstream>

class DbHelper
{
private:
    string main_select;
    DbWorker *db;

    vector<Rodove> convertResultToRodove(vector<vector<string> > res);
    vector<Rodove> getResult(string query);
public:
    DbHelper();
    vector<Rodove> select();
    vector<Rodove> selectYearAfter(int year);

};

#endif // DBHELPER_H
